i want to destructure the below code to expected formate